﻿using System;
using System.Net;
using System.Xml.Linq;
using System.Linq;

namespace ArmoryBrowser.Entities
{
    public class Pvp
    {
        #region Fields
        private string _lifetimehonorablekillsField;
        private string _arenacurrencyField;
        #endregion
        #region Properties
        public string Lifetimehonorablekills
        {
            get
            {
                return this._lifetimehonorablekillsField;
            }
            set
            {
                this._lifetimehonorablekillsField = value;
            }
        }
        public string Arenacurrency
        {
            get
            {
                return this._arenacurrencyField;
            }
            set
            {
                this._arenacurrencyField = value;
            }
        }
        #endregion
        #region Constructor
        public Pvp(XElement element)
        {
            Lifetimehonorablekills = element.Elements("lifetimehonorablekills").Select(e => e.GetAttributeValue("value")).FirstOrDefault();
            Arenacurrency = element.Elements("arenacurrency").Select(e => e.GetAttributeValue("value")).FirstOrDefault();
        }
        #endregion
    }
}
